//
//  YHIMUIKit.h
//  YHChat
//
//  Created by apple on 2019/2/18.
//  Copyright © 2019 yinhe. All rights reserved.
//

#import <Foundation/Foundation.h>

FOUNDATION_EXTERN NSString *const kYHIMUIKitConversationDidChangeNotification;


NS_ASSUME_NONNULL_BEGIN
@class YHIMUIKitConvCellData;
@interface YHIMUIKit : NSObject

+ (instancetype)sharedInstance;


@property (nonatomic, strong, readonly) NSMutableArray<YHIMUIKitConvCellData *> *allConversationList;
@property (nonatomic, assign, readonly) int allUnReadMsgCount;



- (void)initSDKWithAppID:(NSString *)appID
             accountType:(NSString *)accountType;

- (void)loginWithIdentifier:(NSString *)identifier
                   userSign:(NSString *)userSign
            completionBlock:(void(^_Nullable)(NSError *_Nullable error))completionBlock;

- (void)logoutWithCompletionBlock:(void(^_Nullable)(NSError *_Nullable error))completionBlock;


// 获取所有会话列表
- (void)loadAllConversationList;


@end

NS_ASSUME_NONNULL_END
